<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

{:token()}
    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">订单号:</label>
        <div class="col-xs-12 col-sm-4">{$row.order_sn}
        </div>
    </div>
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">客户姓名:</label>
        <div class="col-xs-12 col-sm-4">{$row.kehu_truename}
        </div>
    </div>

    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">性别:</label>
        <div class="col-xs-12 col-sm-4">{$row.kehu_sex==1 ? '男' : '女'}
        </div>
    </div>
	
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">手机号:</label>
        <div class="col-xs-12 col-sm-4">{$row.kehu_mobile}
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">地址:</label>
        <div class="col-xs-12 col-sm-4">{$row.kehu_addr}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">户型区域:</label>
        <div class="col-xs-12 col-sm-4">{$row.num_fang}房{$row.num_ting}厅
        </div>
    </div>
	
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">户型面积:</label>
        <div class="col-xs-12 col-sm-4">{$row.mianji} m<sup>2</sup>
        </div>
    </div>	
	
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">房屋状态:</label>
        <div class="col-xs-12 col-sm-4">{$zidian[$row.house_state] ?? ''}
        </div>
    </div>	
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">户型类别:</label>
        <div class="col-xs-12 col-sm-4">{$zidian[$row.house_type] ?? ''}
        </div>
    </div>		
	
	{if $row.order_tp eq 0}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">意向产品:</label>
        <div class="col-xs-12 col-sm-4">{$zidian[$row.demand] ?? ''}
        </div>
    </div>	
	{/if}

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">预约时间:</label>
        <div class="col-xs-12 col-sm-4">{$row.ydate|date="Y-m-d H",###}
        </div>
    </div>		

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">勘察费用:</label>
        <div class="col-xs-12 col-sm-4">{$row.order_amount}
        </div>
    </div>	
<hr />	
{if !empty($goods_list)}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">产品信息:</label>
        <div class="col-xs-12 col-sm-4">
		
		
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table table-bordered">
  <tr>
    <td>关联产品订单号</td>
    <td>产品名称</td>
    <td>数量</td>
  </tr>
  
  <?php foreach($goods_list as $v){?>
  <tr>
    <td><?php echo $v['order_id'].$v['goods_id'].$v['kehu_id'].$v['id'];?></td>
    <td><?php echo $v['goods_name'];?></td>
    <td>1</td>
  </tr>
  <?php }?>
</table>

		
        </div>
    </div>	
	<hr />	
{/if}

	
	{if !empty($yg_info)}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">工号:</label>
        <div class="col-xs-12 col-sm-4">{$yg_info.truename} </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">员工昵称:</label>
        <div class="col-xs-12 col-sm-4">{$yg_info.nickname} </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">上门时间:</label>
        <div class="col-xs-12 col-sm-4">{$row.sm_time|date="Y-m-d H:i",###}</div>
    </div>
	{/if}

</form>

<style type="text/css">
.form-group{ margin-bottom:3px;
}
</style>